import http from "@/http";
//分类数据类型
export type RoomCategory = {
    categoryId:string;
    categoryName:string;
    orderNum:string;
}
//分页参数
export type PageParm = {
    currentPage:number;
    pageSize:number;
    categoryName:string;
}
//新增
export const addApi = (parm:RoomCategory)=>{
    return http.post("/api/roomCategory",parm)
}
//列表
export const getListApi = (parm:PageParm)=>{
    return http.get("/api/roomCategory/list",parm)
}
//编辑
export const editApi = (parm:RoomCategory)=>{
    return http.put("/api/roomCategory",parm)
}
//删除
export const deleteApi = (categoryId:string)=>{
    return http.delete(`/api/roomCategory/${categoryId}`)
}
//查询下拉列表
export const getSelectApi = ()=>{
    return http.get("/api/roomCategory/select")
}